package com.git.yyy.demo.controller;

import com.git.yyy.demo.client.XxxClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class TestController {

    @Autowired
    XxxClient xxxClient;

    @GetMapping(value = "/testyyy")
    public String testyyy(){
        return xxxClient.test();
    }

    @GetMapping(value = "/api/testyyy")
    public String testapiyyy(){
        return xxxClient.test();
    }

}
